package com.yayun.merchant.domain;

import com.yayun.common.annotation.Excel;
import com.yayun.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class AuctionRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name = "记录ID")
    private Long id;

    @Excel(name = "拍卖ID")
    private Long auctionId;

    @Excel(name = "用户ID")
    private Long userId;

    @Excel(name = "出价")
    private BigDecimal bidPrice;

    @Excel(name = "状态", readConverterExp = "0=出局,1=领先,2=中标")
    private Integer status;

    // 关联的拍卖信息
    private AuctionItem auctionItem;

    // 关联的用户信息
    private String userName;
    private String nickName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAuctionId(Long auctionId) {
        this.auctionId = auctionId;
    }

    public Long getAuctionId() {
        return auctionId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setBidPrice(BigDecimal bidPrice) {
        this.bidPrice = bidPrice;
    }

    public BigDecimal getBidPrice() {
        return bidPrice;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public AuctionItem getAuctionItem() {
        return auctionItem;
    }

    public void setAuctionItem(AuctionItem auctionItem) {
        this.auctionItem = auctionItem;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("auctionId", getAuctionId())
                .append("userId", getUserId())
                .append("bidPrice", getBidPrice())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .toString();
    }
}